package cn.edu.bs.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public interface FileService {

    File save(File file) throws FileNotFoundException;

    File save(InputStream inputStream, String fileName) throws FileNotFoundException;

    File save(MultipartFile multipartFile) throws IOException;

    String genFileName(String fileName);

}
